#!/bin/bash

# 1. download drive
filename='RPCD.zip'
fileid='1RXQ3HwPD2LiZCeoiYbGXssBsXlxDK0in'

curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=$(awk '/download/ {print $NF}' ./cookie)&id=${fileid}" -o ${filename}
rm ./cookie
